package com.mccrea.pattern.bridge;

/**
 * @Classname Clinet
 * @Description 桥接模式测试
 * @Date 2021/5/8 0008 18:04
 * @Created by Mccrea_Gao
 */
public class Clinet {
    public static void main(String[] args) {
        Phone phone = new FoldedPhone(new XiaoMi());
        phone.open();
        phone.call();
        phone.close();
        System.out.println("===============");
        Phone phone1 = new UpRightPhone(new Vivo());
        phone1.open();
        phone1.call();
        phone1.close();

    }
}
